package com.deshan.websys.code.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.deshan.websys.code.mapper.GoodsMapper;
import com.deshan.websys.code.model.Goods;
import com.deshan.websys.code.model.vo.GoodsVO;
import com.deshan.websys.code.service.GoodsService;

import lombok.AllArgsConstructor;

import java.util.List;

import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

	private final GoodsMapper goodsMapper;
	
	@Override
	public List<GoodsVO> getGoodsListByLegalCode(String legalCode) {
		
		return goodsMapper.getGoodsListByLegalCode(legalCode);
	}
}
